package shuishijie.suishijie.model.web;

/**
 * Created by mindx on 2017/4/20.
 */

public class BaseResponse<T> {
    public String msg;
    public int code;
    public T data;

    public BaseResponse() {

    }

    public BaseResponse(BaseResponse base) {
        msg = base.msg;
        code = base.code;
    }

    public boolean isSuccess() {
        return code == 0;
    }
}
